package com.ry.novel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ry.novel.model.dto.UserInfo;
import com.ry.novel.model.dto.condition.UserQuery;
import com.ry.novel.model.entity.User;

import java.util.List;

/**
 * @author ry
 * @since 2022-04-03 16:05
 **/
public interface ReaderService {
    Page<UserInfo> queryReader(UserQuery userQuery);
    void deleteReader(Long id);

    void addReader(UserInfo reader);

    void updateReader(UserInfo reader);

    /**
     * 查询出所有未成为作者的用户
     * @return
     */
    List<UserInfo> queryNotAuthor();

    UserInfo queryById(Long id);

    List<UserInfo> queryAll();
}
